package com.firsthomework;

public class Teacher {

	private String tid;
	private String tname;
	private String tage;
	private String tphone;
	
	//构造注入
	public Teacher(String tid,String tname,String tage,String tphone) {
		super();
		this.tid=tid;
		this.tname=tname;
		this.tage=tage;
		this.tphone=tphone;
	}
	//属性注入
	public Teacher() {
		super();
	}
	public void setTid(String tid) {
		this.tid = tid;
	}
	public void setTname(String tname) {
		this.tname = tname;
	}
	public void setTage(String tage) {
		this.tage = tage;
	}
	public void setTphone(String tphone) {
		this.tphone = tphone;
	}
	//重写toString方法
	@Override
	public String toString() {
		return "tid="+tid+",tname="+tname+",tage="+tage+",tphone="+tphone;
	}
}
